//
//  Picture.swift
//  Gaoloumi
//
//  Created by Jasper on 4/16/16.
//  Copyright © 2016 Jasper. All rights reserved.
//

import UIKit
import AVOSCloud

let kPictureKeyName: String = "name"                   // 名字
let kPictureKeyDescription: String = "descriptions"    // 描述
let kPictureKeyFile: String = "file"    // 描述
let kPictureKeyTower: String = "tower"    // 描述

let kPictureKeyUser: String = "user"    // 图片提交人
let kPictureKeyIsShow: String = "isShow"    // 是否显示  审核用

class Picture: AVObject, AVSubclassing  {
    @NSManaged var name: String?          // 图片名
    @NSManaged var descriptions: String?  // 描述描述
    @NSManaged var file: AVFile?          // 图片
    @NSManaged var tower: Tower?          // 所属高楼
    @NSManaged var user: AVUser?          //
    @NSManaged var isShow: Bool           //
    
    static func parseClassName() -> String! {
        return "Picture"
    }
}
